Skip to content

How are you enabling dynamic typing in c? #108

Answered by edubart
SaptakBhoumik asked this question in Q&A
Discussion options

You must be logged in to vote

With type deduction, you can deduce variable types based on assignments or from a few type notations, this is currently how it works and this has no runtime costs, all is done at compile-time. If assignments have different types for the same variable, then you can use a tagged union for the types or an any type that can hold any value, but this time both have runtime costs, however this was not implemented yet.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SaptakBhoumik
Comment options

Answer selected by SaptakBhoumik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #107 on August 27, 2021 02:10.