1w6 uRPG 1w6 uRPG
  • Anmelden
  • Öffentlich

    • Öffentlich
    • Gruppen
    • Beliebt
    • Verzeichnis

https://sn.1w6.org/file/clacke-20171213T020112-qzf4zzj.html

https://sn.1w6.org/file/clacke-20171213T020112-qzf4zzj.html
@natecull I think it's an arbitrary (guided by the language culture's philosophy) choice that many programming languages have had to make over the years. Some languages (Objective C) have their NIL respond to any message with a NIL. Other languages (Scheme, Smalltalk) may respond to some messages, not to others, and may throw exceptions[0].

#PicoLisp has a philosophy that is very pragmatic: "It is easy to produce a segfault in PicoLisp."[1], so I think the liberal choice seems entirely appropriate.

Only a design error will be negatively affected by "infinite NIL", and an infinite recursion because you forgot the base case is usually discovered pretty early in your development.

[0] Guile: "Wrong type argument in position 1 (expecting pair): ()"
[1] http://www.software-lab.de/doc/faq.html#segfault

Nachrichten, in denen dieser Anhang erscheint

  1. clacke clacke

    @natecull I think it's an arbitrary (guided by the language culture's philosophy) choice that many programming languages have had to make over the years. Some languages (Objective C) have their NIL respond to any message with a NIL. Othe…

    Wednesday, 13-Dec-17 02:00:53 UTC
  • Hilfe
  • Über
  • FAQ
  • AGB
  • Privatsphäre
  • Quellcode
  • Version
  • Kontakt

1w6 uRPG ist ein Mikrobloggingdienst von Arne (Drak) Babenhauserheide. Es wird mit der Mikrobloggingsoftware StatusNet (Version 1.1.1-release) betrieben, die unter der GNU Affero General Public License erhältlich ist. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 Alle Inhalte und Daten von 1w6 uRPG sind unter der Creative Commons Attribution 3.0 Lizenz verfügbar.