为了账号安全,请及时绑定邮箱和手机立即绑定

Which situation iota would be useful?

why is iota designed in Go?

what is advatange of iota?

In which situation, iota would be useful?

正在回答

1 回答

In Go, enumerated constants are created using the iota enumerator. Since iota can be part of an expression and expressions can be implicitly repeated, it is easy to build intricate sets of values.

Here is one example I found, hope it might be useful for you. 

https://github.com/golang/go/wiki/Iota

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
GO语言语法入门篇
  • 参与学习       54132    人
  • 解答问题       103    个

Go编译的程序可以媲美C或C++代码的速度,更加安全、支持并行进程

进入课程

Which situation iota would be useful?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信