News for hackers. Stuff that matters.
Re:What’s New in C# 7.0 by daigoba66 on Wednesday August 24, 2016 @09:48PM (#12356468)
> Literal improvements will be a godsend for writing database migrations.

Can you elaborate on this; both how it helps and why you're using C# for database migrations?

Re:What’s New in C# 7.0 by flukus on Wednesday August 24, 2016 @09:59PM (#12356510)
My go to migrator is fluent migrator (https://github.com/schambers/fluentmigrator) or flywaydb if anyone objects to the c# (https://flywaydb.org/).

Each migration gets a number, typically time encoded. If I was to write one now it would have the attribute [Migration(201608251157)]. With the new literals this will become [Migration(20160825_1157)], amazing how much readability a single underscore can make.