Sign in

Christopher Horobin

@chorobin.bsky.social
98 followers 35 following 100 posts

🌌 Type spacer

PostsRepliesMedia
Christopher Horobin @chorobin.bsky.social · 17/01/2025
Foget types. Time to board
020
Christopher Horobin @chorobin.bsky.social · 20/12/2024
My favourite is this because it seems types can be instantiated lazily when properties are used on a interface. But the test cases obviously fully instantiate the types so it does not show
010
Christopher Horobin @chorobin.bsky.social · 20/12/2024
My first solution was this, but of course it could be more efficient
110
Christopher Horobin @chorobin.bsky.social · 19/12/2024
If you know some code will never go down some conditional branch then instantiations can be reduced by adding additional conditionals. This lowers it to 5013 instantiations
200
Christopher Horobin @chorobin.bsky.social · 19/12/2024
This was my first solution. With the given test cases it had 6524 instantiations
110