Why doesn't rust accept default parameters for functions?

153 points Cranky_Franky_427

I'm struggling to understand why default parameters cannot be implemented into rust. The value and data type is known at compile time. Personally, this is the most annoying feature that I'd love to see in a future rust version.

Is there a technical reason why a default value known at compile time is not possible?