Closed FokkeZB closed 7 years ago
I think it's more confusing for the user, and the current one is pretty clear, isn't it ?
Why do you think it is more confusing? I think it is better for these reasons:
#define
and const
ttn_fp_t
typeI agree with you about the #define
, I just thought it was less confusing to add something (copy/paste) rather than replace it. I would have done it like this:
`
` And on the current one it shows an error if you didn't put anything, so it is easier for the user to notice. It doesn't show an error on the proposed one.
@Nicolasdejean it does show an error:
'TTN_FP' was not declared in this scope
I think it's better because the error is clearer then the current one:
expected primary-expression before 'ttn'
Ok my bad, I didn't test it right ... ok it is a better error message.
Closed by #161
Would you agree this change to our examples will improve the UX?
Current
Proposed