Keyword func (to the tune of "Uptown Funk" by Mark Ronson)

agolangf · · 437 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Keyword <code>func</code><br/> <em>(To the tune of Uptown Funk by Mark Ronson)</em></p> <p>Let&#39;s write some nice code<br/> In Golang, the easy mode<br/> This spec&#39;s forty-five pages,<br/> Not a thousand pages, like C++!<br/> Rob Pike, Ken T., Griesemer made it at Google<br/> Release time 2009<br/> Got a syntax easy and frugal </p> <p>Static typed (go-lang!)<br/> Be assured, type is immutable<br/> Compiled (go-lang!)<br/> To one static-linked executable<br/> Spread wide (go-lang!)<br/> Any platform is suitable<br/> Runtime (go-lang!)<br/> Go is garbage collected (break it down) </p> <p>Functions are first-class objects (go!)<br/> Functions are first-class objects (go!)<br/> Functions are first-class objects (go!)<br/> The keyword <code>func</code> declares a function<br/> The keyword <code>func</code> declares a function<br/> The keyword <code>func</code> declares a function<br/> Built-in detector prevents deadlocks<br/> Go&#39;s a language that rocks (c&#39;mon) </p> <p>(Sweet trumpet interlude)<br/> Go&#39;s a language that rocks<br/> (Sweet trumpet interlude) </p> <p>Go&#39;s a language that rocks<br/> Go&#39;s a language that rocks<br/> Go&#39;s a language that rocks<br/> Hey, hey, hey, oh!<br/> Stop, time.Sleep() </p> <p>Golang&#39;s switch is a limber statement<br/> Memory safe, bounds are checked<br/> &#34;What are its, design goals?&#34;<br/> Fast compile speed, concurrency, programmer productivity<br/> Every feature makes you a preacher<br/> So to use it you&#39;ll have proclivity </p> <p>Like &#34;select&#34; (go-lang!)<br/> Choose a channel, and then run its case<br/> Object (go-lang!)<br/> No inheritance, just embed the base<br/> Reflect (go-lang!)<br/> Sw**** on the type of an interface!<br/> Project (go-lang!)<br/> There&#39;s no need for makefiles (break it down) </p> <p>Functions are first-class objects (go!)<br/> Functions are first-class objects (go!)<br/> Functions are first-class objects (go!)<br/> The keyword <code>func</code> declares a function<br/> The keyword <code>func</code> declares a function<br/> The keyword <code>func</code> declares a function<br/> Built-in detector prevents deadlocks<br/> Go&#39;s a language that rocks (c&#39;mon) </p> <p>(Sweet trumpet interlude)<br/> Go&#39;s a language that rocks<br/> (Sweet trumpet interlude) </p> <p>Go&#39;s a language that rocks<br/> Go&#39;s a language that rocks<br/> Go&#39;s a language that rocks<br/> Hey, hey, hey, oh! </p> <p>Before we receive,<br/> I want to tell y&#39;all that Go supports closures </p> <p>Inline func you up, inline func you up<br/> Inline func you up, inline func you up<br/> Inline func you up, inline func you up<br/> Inline func you up, inline func you up </p> <p>Gopher, not ferret<br/> Left-to-right&#39;s how we declare it<br/> Learn to value your errors; its<br/> Core libraries have great merit<br/> Gopher, not ferret<br/> Golang&#39;s virtues you&#39;ll parrot<br/> Well, its built-in detector prevents deadlocks<br/> Go&#39;s a language that rocks (c&#39;mon) </p> <p>(Sweet trumpet interlude)<br/> Go&#39;s a language that rocks<br/> (Sweet trumpet interlude) </p> <p>Go&#39;s a language that rocks<br/> Go&#39;s a language that rocks<br/> Go&#39;s a language that rocks<br/> Hey, hey, hey, oh! </p> <p>Inline func you up, inline func you up (x8) </p> <hr/>**评论:**<br/><br/>ctbel: <pre><p>First I was confused, then I realized it&#39;s Friday... Gophigure.</p></pre>shovelpost: <pre><p>I do not like the song and didn&#39;t even read this but I am upvoting for the effort.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

437 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传