logoalt Hacker News

NuclearPMtoday at 5:20 AM1 replyview on HN

You don’t what?


Replies

ygratoday at 6:51 AM

You don't have to write the method twice. Source generators can only add new code, they cannot take away a method you declared, so it will still be there at runtime when called with non-constant arguments.