HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nx7487

no profile record

comments

nx7487
·4년 전·discuss
sed -i "s/function_name/function_name2/g" $FILES && git restore $FILES

Edit: Not claiming this is better, just saying what I get by with. I have never used an IDE in my career so far, or any autocomplete or code modification features.
nx7487
·4년 전·discuss


    Go 1.18 added generics to the language. This allows you to have your types take types as parameters so that you can create composite types (types out of types). This lets you get a lot of expressivity and clarity about how you use Go.
Aren't structs already composite types?