Author Topic: logic doubt  (Read 10215 times)

0 Members and 1 Guest are viewing this topic.

Stefan

  • Bull Frog
  • Posts: 319
  • The most I miss IRL is the Undo button
Re: logic doubt
« Reply #30 on: March 09, 2019, 04:44:53 PM »
OK, no more"ugly code". Let me reformulate.
Marko, in case of an "else" statement, you can use
Code: [Select]
(if
  (and x y)
  (do_the_oter_stuff)
  (do_the_stuff)
)



Some day I’ll grow up, but not today lol.

Even the otter is prettier

Lee Mac

  • Seagull
  • Posts: 12906
  • London, England
Re: logic doubt
« Reply #31 on: March 09, 2019, 06:36:40 PM »
For example I'd dare to assume that MP's lisp coding syntax wasn't figured out in a single night by him, but rather constantly re-styled through the years.

When I first learned LISP I used an indent of 2 spaces. As work demanded the employ of additional languages I opted to use an indent of 4 spaces universally.

Ditto - Python converted me to 4 spaces and I haven't looked back since. :-)