Logo
Explore Help
Sign In
Ganome/ziglings.org
1
0
Fork 0
You've already forked ziglings.org
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
ziglings.org/patches/patches/046_optionals2.patch

9 lines
216 B
Diff
Raw Normal View History

Ensure the patches are up-to-date and consistent Add the update-patches.py tool. Update all the patches, so that the files are up-to-date and use the same patch file format.
2023-04-17 09:19:49 +02:00
24c24
Added ex 48, additional comment on 46
2021-02-28 13:23:22 -05:00
< tail: *Elephant = null, // Hmm... tail needs something...
Added ex. 46 optionals 2 - elephants!
2021-02-16 20:21:32 -05:00
---
Change default elephant tail to null (#25) It was confusing to see tail... = undefined in the struct definition and then if (tail == null) later in the exercise - it appears that the mismatch would be the issue - but that's distracting from the real issue: making the value optional! Changing the initial value to null is still correct, but won't distract. The only worry now is that the user will remember the undefined definition from the previous exercise and wonder if that has to be that way...but you can't win them all!
2021-02-28 11:00:20 -05:00
> tail: ?*Elephant = null, // <---- make this optional!
Ensure the patches are up-to-date and consistent Add the update-patches.py tool. Update all the patches, so that the files are up-to-date and use the same patch file format.
2023-04-17 09:19:49 +02:00
54c54
Added ex. 46 optionals 2 - elephants!
2021-02-16 20:21:32 -05:00
< if (e.tail == null) ???;
---
> if (e.tail == null) break;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 36ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API