#-/-

1 messages · Page 1 of 1 (latest)

silver anvil
#

generally use comptime even if it's implicit afaik

#

but no there's no difference

glad ibex
#

i dont think the second is valid code

silver anvil
#

it's valid

fickle prism
#

so this working is sort of an unexpected consequence from another change, idk if it will stay like this or not its not entirely clear

#

basically it was made so that parameters with comptime only types dont have to be marked comptime which made comptime able to do more stuff, iirc the motivating example was sorting a slice of type

#

anyway yea, theres no difference, i personally would mark it comptime anyway

silver anvil
#

interesting

distant mirage
#

the main difference is if it's not a comptime-only type

#

if it's something like usize, it'll only be comptime-known if you mark it as comptime