<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Whisker Programming Language</title><link>https://whisker.oreha.dev/</link><description>Recent content on Whisker Programming Language</description><generator>Hugo</generator><language>en</language><atom:link href="https://whisker.oreha.dev/index.xml" rel="self" type="application/rss+xml"/><item><title>Getting Started with Whisker</title><link>https://whisker.oreha.dev/learn/getting-started/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/learn/getting-started/</guid><description>&lt;h2 id="install"&gt;Install&lt;/h2&gt;
&lt;p&gt;Whisker needs the &lt;a href="https://go.dev/dl/" rel="noopener"&gt;Go toolchain&lt;/a&gt;, version 1.27 or later: &lt;code&gt;whisker&lt;/code&gt; turns your program into Go and asks Go to compile it.&lt;/p&gt;
&lt;p&gt;With &lt;a href="https://brew.sh/" rel="noopener"&gt;Homebrew&lt;/a&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;brew install 135yshr/tap/whisker
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;With Go:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;go install github.com/135yshr/meow/cmd/whisker@latest
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or download an archive for macOS, Linux or Windows from the &lt;a href="https://github.com/135yshr/meow/releases" rel="noopener"&gt;releases page&lt;/a&gt;. Check the install with:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;whisker version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="your-first-program"&gt;Your first program&lt;/h2&gt;
&lt;p&gt;Save this as &lt;code&gt;hello.wsk&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-rust" data-lang="rust"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#ff79c6"&gt;fn&lt;/span&gt; &lt;span style="color:#50fa7b"&gt;greet&lt;/span&gt;(name string) string {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#ff79c6"&gt;return&lt;/span&gt; &lt;span style="color:#f1fa8c"&gt;&amp;#34;Hello, &amp;#34;&lt;/span&gt; &lt;span style="color:#ff79c6"&gt;+&lt;/span&gt; name &lt;span style="color:#ff79c6"&gt;+&lt;/span&gt; &lt;span style="color:#f1fa8c"&gt;&amp;#34;!&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;print(greet(&lt;span style="color:#f1fa8c"&gt;&amp;#34;World&amp;#34;&lt;/span&gt;))&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Run it:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;whisker run hello.wsk
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#6272a4"&gt;# Hello, World!&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;whisker hello.wsk&lt;/code&gt; does the same.&lt;/p&gt;</description></item><item><title>Whisker Language Specification</title><link>https://whisker.oreha.dev/doc/spec/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/doc/spec/</guid><description>&lt;p&gt;This document defines the syntax and semantics of the Whisker programming
language.&lt;/p&gt;
&lt;p&gt;Whisker is a small, gradually typed language that reads like Go: a handful of
reserved words, &lt;code&gt;fn&lt;/code&gt; for every function, &lt;code&gt;type&lt;/code&gt; for every type declaration,
and no semicolons. Source files use the &lt;code&gt;.wsk&lt;/code&gt; extension and are encoded in
UTF-8. The &lt;code&gt;whisker&lt;/code&gt; command transpiles a program to Go and builds it into a
native binary with the Go toolchain; &lt;code&gt;whisker run&lt;/code&gt; builds and runs it in one
step.&lt;/p&gt;</description></item><item><title>A Tour of Whisker</title><link>https://whisker.oreha.dev/learn/tour/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/learn/tour/</guid><description>&lt;p&gt;Every example on this page is a whole program. Paste one into the &lt;a href="https://whisker.oreha.dev/playground/"&gt;Playground&lt;/a&gt; to run it; the one under &lt;a href="#imports"&gt;Imports&lt;/a&gt; uses a Go package, so run it with the &lt;code&gt;whisker&lt;/code&gt; command instead.&lt;/p&gt;
&lt;h2 id="bindings"&gt;Bindings&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;let&lt;/code&gt; binds a name to a value. A type annotation is optional: without one, the type comes from the value.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-rust" data-lang="rust"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;let&lt;/span&gt; name &lt;span style="color:#ff79c6"&gt;=&lt;/span&gt; &lt;span style="color:#f1fa8c"&gt;&amp;#34;Hoge&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;let&lt;/span&gt; age int &lt;span style="color:#ff79c6"&gt;=&lt;/span&gt; &lt;span style="color:#bd93f9"&gt;3&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;print(name, &lt;span style="color:#f1fa8c"&gt;&amp;#34;is&amp;#34;&lt;/span&gt;, age)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;A binding cannot be rebound. To get a new value, bind a new name.&lt;/p&gt;</description></item><item><title>Whisker Language Reference</title><link>https://whisker.oreha.dev/doc/reference/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/doc/reference/</guid><description>&lt;p&gt;A quick reference of Whisker&amp;rsquo;s words, operators, types and syntax. The
specification is &lt;a href="https://whisker.oreha.dev/doc/spec/"&gt;spec.md&lt;/a&gt;; the builtins, the tests and the Go
packages are in &lt;a href="https://whisker.oreha.dev/doc/stdlib/"&gt;stdlib.md&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id="reserved-words"&gt;Reserved Words&lt;/h2&gt;
&lt;p&gt;These eleven words cannot be used as names.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Word&lt;/th&gt;
 &lt;th&gt;Meaning&lt;/th&gt;
 &lt;th&gt;Example&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;let&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Bind a name&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;let x = 42&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;fn&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Function, method or lambda&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;fn add(a int, b int) int { a + b }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;return&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Return a value&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;return x + 1&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;if&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Conditional branch&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;if x &amp;gt; 0 { ... }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;else&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Else branch&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;} else { ... }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;for&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Loop (condition, range, list, dict, or forever)&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;for i in 1..10 { ... }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;break&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Leave the loop&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;if found { break }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;continue&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;On to the next turn&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;if empty { continue }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;match&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Branch on a value (pattern match)&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;match v { 0 =&amp;gt; &amp;quot;zero&amp;quot;, _ =&amp;gt; &amp;quot;other&amp;quot; }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;type&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Declare a type&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;type Point struct { x int, y int }&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;&lt;code&gt;import&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Import a Go package&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;import go &amp;quot;net/http&amp;quot;&lt;/code&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="contextual-keywords"&gt;Contextual Keywords&lt;/h2&gt;
&lt;p&gt;Ordinary names everywhere except where this table says.&lt;/p&gt;</description></item><item><title>Whisker Standard Library Reference</title><link>https://whisker.oreha.dev/doc/stdlib/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/doc/stdlib/</guid><description>&lt;p&gt;This document describes Whisker&amp;rsquo;s built-in functions, how its tests are
written and run, and the Go packages a program reaches. Built-in functions
need no &lt;code&gt;import&lt;/code&gt;; Whisker has no packages of its own, and a Go package is
imported by its path, as &lt;code&gt;import go &amp;quot;os&amp;quot;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;nil&lt;/code&gt; prints as &lt;code&gt;nil&lt;/code&gt;, and an error prints its message, such as
&lt;code&gt;error: Division by zero&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="built-in-functions-no-import-required"&gt;Built-in Functions (no &lt;code&gt;import&lt;/code&gt; required)&lt;/h2&gt;
&lt;p&gt;Built-in functions are &lt;a href="https://whisker.oreha.dev/doc/spec/#predeclared-identifiers"&gt;predeclared&lt;/a&gt;: a
program may bind any of their names again, and the binding hides the builtin
for the rest of its scope. Named rather than called, a builtin is a function
value, and can be passed to &lt;code&gt;map&lt;/code&gt; or piped into like any other.&lt;/p&gt;</description></item><item><title>Privacy Policy</title><link>https://whisker.oreha.dev/privacy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/privacy/</guid><description>&lt;p&gt;&lt;em&gt;Last updated: 2 December 2026&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This page explains what information whisker.oreha.dev collects and sends to others. The site is run by Whisker&amp;rsquo;s maintainers (&lt;a href="https://github.com/135yshr/meow" rel="noopener"&gt;135yshr/meow&lt;/a&gt; on GitHub).&lt;/p&gt;
&lt;h2 id="google-analytics-only-with-your-consent"&gt;Google Analytics, only with your consent&lt;/h2&gt;
&lt;p&gt;The site uses &lt;a href="https://marketingplatform.google.com/about/analytics/" rel="noopener"&gt;Google Analytics&lt;/a&gt;, loaded through Google Tag Manager, to see which pages are read and where visitors come from. That tells us which documentation to improve.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nothing is sent to Google until you choose Accept in the cookie banner.&lt;/strong&gt; Until then, Google Tag Manager and Google Analytics are not loaded at all. If your browser sends Do Not Track, they are never loaded and you are not asked.&lt;/p&gt;</description></item><item><title>Sitemap</title><link>https://whisker.oreha.dev/sitemap/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/sitemap/</guid><description/></item><item><title>Whisker Playground</title><link>https://whisker.oreha.dev/playground/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://whisker.oreha.dev/playground/</guid><description/></item></channel></rss>