Conversation

genuinely one of my favorite things about Lisp-like languages is how variable names can include so many symbols. I love how, for example, all of my functions that return booleans can end in a question mark - and all of my functions that are called only for their side effects can end in an exclamation point. imagine having list.append() which returns a new list, and list.append!() which modifies the existing list, except that works for all methods

I’m almost tempted to write my Python code in a similar way - for example the _x suffix would mean “called for side effects only” and the _p suffix would mean “answers a question and returns a boolean”

it’s a really nice way to have both concision and clarity - both of which are important for good code IMO

2
0
6

@kasdeya something Ruby got right as well

0
0
1