561 reputation
1515
bio website
location Brittany
age 23
visits member for 2 years, 2 months
seen Apr 14 at 7:11

Some random programmer. My favourite programming languages are currently C++14 and Python. I love to listen to music all day long while doing anything - psytrance is a must while programming. I also love to talk about music and to play music. I have been playing the recorder in a celtic metal band for some time now. Well, whatever, you are probably wasting your time reading this description.


Feb
20
comment Why are there so few C compilers?
That's implementation-defined behaviour, not undefined behaviour.
Feb
19
comment Why are there so few C compilers?
@Leushenko MSVC isn't permanently stuck in C89. There have been some discussions and more C99 features should be added. For starters, most of the C99 library is supported as of MSVC 2015 and a few language features too (mainly the things needed for C++11 though).
Feb
12
awarded  Yearling
Jan
26
revised Is the 'finally' portion of a 'try … catch … finally' construct even necessary?
Improved formatting.
Jan
26
comment Is the 'finally' portion of a 'try … catch … finally' construct even necessary?
It may be useful to note that destructors help with cleaning resources when destruction is deterministic. If we don't know when the object will be destructed and/or garbage-collected, then destructors are not safe enough.
Jan
26
suggested approved edit on Is the 'finally' portion of a 'try … catch … finally' construct even necessary?
Jan
2
comment Is there a conventional way to combine file path strings?
@jpmc26 Also, it's worth noting that Python 3.4 introduced a new pathlib module to give a more OO feel to the old os.path.
Nov
7
awarded  Famous Question
Jul
2
awarded  Curious
Apr
24
revised Intersection of geometric entities
Added one more example. Fixed stuff.
Apr
24
comment Intersection of geometric entities
Also, I wouldn't mind being crucified for that. There are sooooo many reasons many programmers need to be crucified :D
Apr
24
comment Intersection of geometric entities
I like to comment old answers, so I'll add a third comment to this one: exceptions are slow only when triggered, they can be zero-cost otherwise. In the example where the most common type is returned and the other are thrown, it would almost never slow the program down.
Apr
11
comment What is the pattern for a safe interface in C++
Can't you simply use pure virtual functions in the interface? virtual void bar() = 0; for example? That would prevent your interface from being instanciated.
Apr
10
comment Why is 0 false?
@HostileFork I don't know. I find that it makes sense that 0 is true (as every other integer) in a dynamic language. I sometimes happened to catch a 0 when trying to catch None in Python, and that can sometimes be pretty hard to spot.
Mar
27
revised Using past participle for non-altering functions
More stuff again.
Mar
21
revised Using past participle for non-altering functions
td;dr : tl;dr
Mar
20
comment Using past participle for non-altering functions
@RobY Or I would use obj.inverse(), the noun form, which would also be valid in such a case.
Mar
20
comment Using past participle for non-altering functions
@RobY I would use ob.inverser(); imperative would be awkward. But ob.inversé() would make sense though.
Mar
20
revised Using past participle for non-altering functions
Added a note about unary/binary functions.
Mar
20
comment Using past participle for non-altering functions
Well, I have to admit that my "rule" may only be relevant when there is only one parameter (I consider self as a parameter too).