lgarron / console.log

console.log() for every language.
MIT License
5 stars 0 forks source link

console.log()

For when you don't want to think about what language you're using, and just get stuff onto the screen.

arr = [21, -22, [23, 24], "owl", {"eagle": [25]}]
map = {"cat": [31, 32], "dog": 33, 34: "fox"}

console.log("Values:", 1337, arr, map)

Languages

Language Hackiness Import Arrays Maps Limitations
C++ πŸ”₯πŸ”₯ #include "cpp/console.h" std::vector std::map ΒΉ
Go πŸ”₯ import "./go/console" βœ… βœ… ΒΉ Β²
Java πŸ”₯πŸ”₯ import console.console; βœ… TODO ΒΉ Β³
JavaScript N/A βœ… βœ…
Julia include("julia/console.jl") βœ… βœ…
Mathematica πŸ”₯πŸ”₯πŸ”₯ Import["mathematica/console.m"] βœ… βœ… ⁴
Python import console βœ… βœ… Β³
Ruby πŸ”₯ require "./ruby/console" βœ… βœ…

Limitations

If you know workarounds for these limitations (however hacky!), let me know.

Goals

Non-Goals

Run all

make test