Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
theseoafs
on Dec 16, 2016
|
parent
|
context
|
favorite
| on:
The Idea of Lisp
`void` in C does not have a value. You can't make a variable and put a void in it because there is no such object as "void".
Ericson2314
on Dec 17, 2016
|
next
[–]
That is an artificial restriction if C. Also see how ! In Rust is also loosing it's artificial restrictions.
lomnakkus
on Dec 20, 2016
|
parent
|
next
[–]
Indeed, and there has been some talk of removing this restriction in C++ because it makes certain kinds of metaprogramming a lot more cumbersome than they should be.
jimktrains2
on Dec 16, 2016
|
prev
[–]
Yes, and () isn't void; the poster above me is wrong. Void is...the absence of a type? It's awkward.
However, () and Unit are.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: