563 reputation
1516
bio website
location Brittany
age 23
visits member for 2 years, 3 months
seen 7 hours ago

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.


1d
awarded  Citizen Patrol
2d
reviewed Reviewed const reference and const pointer. How do they work?
May
27
comment Why can't there be any implicit conversions?
The Zen of Python, second principle: Explicit is better than implicit.
May
6
comment Intersection of geometric entities
If I understand correctly, the problem with your solution is that it only works when the result of the intersection is a set a points. However, an intersection between two lines can return a point, a line or nothing. Bottom line: the result can be a set of widely different shapes, so an array of one type can't do it :/
May
6
comment Intersection of geometric entities
Exceptions are brutally slow except when not called. In one of the examples, I returned the most case and threw the "exceptional" ones which are statistically brutally uncommon, so the speed should not have been a problem. I wouldn't choose the exceptions for other reasons, though :)
May
6
revised Intersection of geometric entities
Time machine note.
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
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.
Feb
25
awarded  Teacher
Feb
25
answered Member functions vs. Non-member functions for math operators