821 reputation
47
bio website
location
age
visits member for 3 years
seen 20 mins ago

6h
comment Is there any practical use for the empty type in Common Lisp?
@PauloMadeira The answer is now edited, for the better I hope. Thanks for your comments.
6h
revised Is there any practical use for the empty type in Common Lisp?
added 996 characters in body
1d
revised Is there any practical use for the empty type in Common Lisp?
added 335 characters in body
1d
comment Is there any practical use for the empty type in Common Lisp?
@PauloMadeira Thanks for the detailed explanations, I wasn't aware of this. (1) Does it mean for SBCL that some declarations, like error, will eventually be changed to use (values &optional)? (2) You said that "there is no portable way", yet values is "the only reliable way"; I am little lost here, isn't it portable? (3) you say that since it is impossible to have a value of type nil, the function definition with nil is necessarly wrong: but functions are allowed to not return values; wouldn't signaling an error/warning for the declaration be incorrect, by over-approximation?
1d
revised Is there any practical use for the empty type in Common Lisp?
added 21 characters in body
1d
revised Is there any practical use for the empty type in Common Lisp?
added 700 characters in body
1d
comment Is there any practical use for the empty type in Common Lisp?
@PauloMadeira (i) You might be confusing the NULL type with the NIL type (aka. "empty type"); (ii) It is true that this is an undefined behaviour. I'll edit to make it clear, thanks.
Aug
2
awarded  Yearling
Jul
30
revised Filtering a List
Change to match original question format
Jul
30
revised Filtering a List
added 2 characters in body
Jul
30
revised Filtering a List
added 87 characters in body
Jul
30
answered Filtering a List
Jul
28
revised Is this a candidate for Singleton?
I think "incentive" is the proper word here
Jul
28
suggested suggested edit on Is this a candidate for Singleton?
Jul
18
answered Is there any practical use for the empty type in Common Lisp?
Jun
17
answered How to minimize typos when you code?
May
11
comment Find number of occurrence of a word in a 2D matrix of Characters
Your example does not cover corner cases where multiple occurences overlap (what about a palindromic "TEAMEAT" sequence in the matrix?). If multiple solutions exist, do you want to produce them all or only one?
Apr
21
awarded  Mortarboard
Apr
14
revised What is the pattern for a safe interface in C++
deleted 52 characters in body
Apr
14
comment What is the pattern for a safe interface in C++
@paercebal thanks for your comments; about pure virtual classes, you are right, it does not solve all your constraints (I will remove this part). I understand the "interface error" part and how catching errors at compile-time is useful: but you asked if you are paranoid, and I think the rational approach is to balance your need for static checks with the likeliness of the mistake happening. Good luck with the compiler thing :)