日本語 | English |
then().then().then().世()
のようなメソッドチェーンで "前前前世" と末尾に改行付きで出力すればOKです。Promise
やFuture
等の言語機能があればぜひ活用してください。
なお、このレポジトリは、実在するバンド「RADWIMPS」とは何ら関係ありません。
君の then-then-then 世は Promise で Future
License: MIT License
日本語 | English |
then().then().then().世()
のようなメソッドチェーンで "前前前世" と末尾に改行付きで出力すればOKです。Promise
やFuture
等の言語機能があればぜひ活用してください。なお、このレポジトリは、実在するバンド「RADWIMPS」とは何ら関係ありません。
README.en.md?
メソッドチェーンが不可能な言語のときのレギュレーションが曖昧なので明確にしたいです。
日本語を出力することができない言語が少なからず存在するだろうし、
英語圏の人からすれば前前前世っていうのはそもそも何、っていう感じになるので
日本語出力ができない場合はZen zen zen se
でも可、みたいにしてはどうでしょうか
必要ですか?
$ echo RADWIMPS | ./test
1c1
< 前前前世
---
> RADWIMPS
NG.
$ echo -n 前前前世 | ./test
1c1
< 前前前世
---
> 前前前世
\ No newline at end of file
NG.
$ echo 前前前世 | ./test
OK.
#!/bin/bash
######
#test#
######
function main() {
local tmp1 tmp2
tmp1="$(mktemp)"
tmp2="$(mktemp)"
echo 前前前世 > "${tmp1}"
cat - > "${tmp2}"
diff "${tmp1}" "${tmp2}"
[[ $? = 0 ]] && {
echo OK.
return 0
} || {
echo NG.
return 1
}
}
cat - | main
exit $?
リポジトリ全体に適用するライセンスが欲しい
MITかApacheあたりがいいけどどうでしょう
リポジトリ全体のディレクトリ・ファイル構成について
The changes produced in PR #110 break existing behavior and public APIs. Attributes with no leading underscores are considered public API.
Related: #134 @shniubobo
Formerly ( ef67d36 ):
$ ipython
Python 3.8.2 (default, May 22 2020, 21:44:03)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.14.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import RADWIMPS
In [2]: RADWIMPS.RADWIMPS.then().then().then().世()
前前前世
Out[2]: RADWIMPS.RADWIMPS
In [3]:
Do you really want to exit ([y]/n)? y
$
And now ( 7cbc601 ):
$ ipython
Python 3.8.2 (default, May 22 2020, 21:44:03)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.14.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import RADWIMPS
In [2]: RADWIMPS.RADWIMPS.then().then().then().世()
Out[2]: 前前前<coroutine object RADWIMPS.世 at 0x106eb48c0>
In [3]:
Do you really want to exit ([y]/n)? y
/Users/takumi/.pyenv/versions/3.8.2/lib/python3.8/site-packages/IPython/core/interactiveshell.py:1445: RuntimeWarning: coroutine 'RADWIMPS.世' was never awaited
self.user_ns_hidden.clear()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
print()
on invocation of RADWIMPS.then()
RADWIMPS.RADWIMPS
This kind of change will confuse the users of the RADWIMPS
module as it is not intended to return async stuff. While it is a joke repository, breaking changes should be carefully considered and avoided.
Async APIs are worth having. Forking RADWIMPS.py
should solve this issue and rolls back to the code it ought to be. While async modules are named like asyncfoobar.py
in general, it's better to name it RADWIMPS_async.py
here.
$ cp RADWIMPS.py RADWIMPS_async.py # queer capitalizing tho ;)
$ git revert 7cbc601
$ git add RADWIMPS_async.py
$ git commit -m "blahblah"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.