Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
cozzyd
3y ago
0 comments
Save
Share
They're quite readable IMO, in the right context (in languages other than PHP)
double piecewise(double x) { return x < 0 ? x*x : x < 1 ? x : x < 5 ? x*x-x+1 : 21. }
0 comments
1 comments · 1 top-level
top
newest
oldest
wizofaus
3y ago
That'd be fine if your debugger let you set a breakpoint on the 'x*x-x+1' bit.
j
/
k
navigate · click thread line to collapse