On Thursday, June 8, 2017 at 6:49:41 PM UTC+2, Ian Lance Taylor wrote:
>
> On Thu, Jun 8, 2017 at 9:15 AM, Alessandro Re <akiros...@gmail.com 
> <javascript:>> wrote: 
> > Besides being possible, and probably not really practical, is it safe? 
> Are 
> > there any practical use cases where redefining some basic data types can 
> be 
> > a good idea? 
>
> It is safe.  But it is likely to be confusing for any readers.  And it 
> can make it hard to call other packages that use a different 
> definition of `int`.  So I'd have to say that this is never practical. 
>
>
I tried to go down that path in a code that uses the flag package, but 
either ways (redefining basic types or defining new types) it seems 
unpractical, as flag uses pointers.

Thanks for replying
Cheers
~Ale

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to