SICP chapter 4 implements begin as a sequence and does not allow empty sequences. But most Schemes allow an empty begin at least at top level.
For example "(begin)" is ok for Chez, but "(display (begin))" is not. Chibi does not care and displays undef.
Why is there so much inconsistency? What is the benefit?
Marc Nieper-Wißkirchen schrieb am Montag, 30. Oktober 2023 um 15:05:05 UTC+1:
Because there are at least two different `begin's.Wow: one symbol with two different meanings. This sounds broken.
Because there are at least two different `begin's.
Scheme is not a context-free language.
Marc Nieper-Wißkirchen schrieb am Montag, 30. Oktober 2023 um 16:53:25 UTC+1:
Scheme is not a context-free language.Which one is wrong?
1.) Scheme's syntax is given in a Backus-Naur form.
2.) The Backus-Naur form defines context-free grammars.
3.) Context-free grammars define context-free languages.
Marc Nieper-Wißkirchen schrieb am Montag, 30. Oktober 2023 um 15:05:05 UTC+1:
Because there are at least two different `begin's.
Wow: one symbol with two different meanings. This sounds broken.
Marc Nieper-Wißkirchen schrieb am Montag, 30. Oktober 2023 um 15:05:05 UTC+1:
Because there are at least two different `begin's.
Wow: one symbol with two different meanings. This sounds broken.
The term 'lambda' as it applies to logic was described by a group of logicians ...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 169:06:54 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,551 |