Skip to content

Instantly share code, notes, and snippets.

aahed
aalii
aargh
aarti
abaca
abaci
aback
abacs
abaft
abaka
@qaziquza
qaziquza / suggestions.md
Created May 11, 2022 08:04 — forked from omentic/suggestions.md
Compilation of suggestions from the Nim v2 thread

Suggestions for Nim v2

Breaking changes

  • Yardanico, exelotl, didlybom: Remove backwards-compatible switches / deprecated features
  • markus_gritsch, TiffanyR: newSeq() and newString() ==> initSeq() and initString()
  • Zoom: Overhaul stdlib to work with view types and/or options/results for error handling
  • xigoi, namisboss: Change object initialization syntax to use = instead of : for consistency
  • xigoi: Allow using newlines instead of commas
This is an analysis of https://codegolf.stackexchange.com/a/203685/78112
like in https://gist.github.com/kmill/266ef6bb5690f9c26110673dcc59f710
Input: n A
1. M1 + A -> M2 + 10 B
2 M1 -> M2 + A
3. M2 + A + Div -> M1 + B
4. M2 + 4 B + Div -> M1 + A
5. M2 -> Count
@qaziquza
qaziquza / falsehoods-programming-time-list.md
Created January 18, 2022 01:13 — forked from timvisee/falsehoods-programming-time-list.md
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).