Skip to content

u/canton7

In this archive from Jul 2008 to Dec 2022

1
posts
27
comments
0
media
91
score

Top posts

Top comments

There are a number of methods which return a boolean indicating whether or not an error occurred. However there's no way to get what the error was. This makes the interface feel very C-like, and not at all like a modern object-orientated language.

Why do these methods return a bool, rather than throwing an exception on failure?

In addition, get, getMultiple and has don't return a bool, so there's no way of indicating an error in the same way as the other methods.

As a separate issue, the $ttl parameter to set can take an int, but there's no indication of the units of this value in the doc comment. What happens if a negative or zero interval is given? Is an exception thrown? What?

39 points

I think I'm correct in remembering that if you haven't modified the config file which was installed by pacman, then a new version of the config file will simply overwrite the old one. .pacnew files only appear when you've made changes to the old config file, and pacman doesn't want to throw away your changes.

8 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.