-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,6 @@ wheels/ | |
dev/ | ||
requirements-dev.lock | ||
requirements.lock | ||
|
||
# custom | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"declo","text":"<p>A simple way to program declaratively in python.</p>"},{"location":"#usage","title":"Usage","text":"<ol> <li>Easily create lambdas</li> </ol> <pre><code>from declo.tools import d_lambda\n\nadd_one = d_lambda(\"x => x + 1\")\nassert add_one(1) == 2 # True\n</code></pre> <ol> <li>Create named functions globally</li> </ol> <pre><code>from declo.tools import run\n\n# this creates a function foo in the global name space. \nrun(\"let foo = x => x + 1\")\n\nassert foo(5) == 6\n</code></pre>"},{"location":"#thoughts","title":"Thoughts","text":"<ol> <li>Can we introduce synctatic sugar with pre-processing?</li> <li>Can we dynamically create native objects using <code>ast</code>, <code>compile()</code> or <code>types.FunctionDef</code>?</li> <li>What are the hard things - like closures?</li> <li>How do we handle linting?</li> </ol>"}]} | ||
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"declo","text":"<p>A simple way to program declaratively in python.</p>"},{"location":"#usage","title":"Usage","text":"<ol> <li> <p>Create lambdas with arrow notation <pre><code>from declo.tools import d_lambda\n\nadd_one = d_lambda(\"x => x + 1\")\nassert add_one(1) == 2 # True\n</code></pre></p> </li> <li> <p>Create named functions globally <pre><code>from declo.tools import run\n\n# this creates a function foo in the global name space. \nrun(\"let foo = x => x + 1\")\n\nassert foo(5) == 6\n</code></pre></p> </li> </ol>"},{"location":"#thoughts","title":"Thoughts","text":"<ol> <li>Can we introduce synctatic sugar with pre-processing?</li> <li>Can we dynamically create native objects using <code>ast</code>, <code>compile()</code> or <code>types.FunctionDef</code>?</li> <li>What are the hard things - like closures?</li> <li>How do we handle linting?</li> </ol>"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters