Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B620ADD84 for ; Mon, 22 Oct 2012 14:32:25 +0000 (UTC) Received: (qmail 59493 invoked by uid 500); 22 Oct 2012 14:32:25 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 59461 invoked by uid 500); 22 Oct 2012 14:32:25 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 59450 invoked by uid 99); 22 Oct 2012 14:32:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2012 14:32:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gtanner@gmail.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2012 14:32:21 +0000 Received: by mail-oa0-f47.google.com with SMTP id h1so2441965oag.6 for ; Mon, 22 Oct 2012 07:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=mX8tSPpajjf2jR9fIaOheGRtbbidCgX927/pNFzxdUg=; b=IJUWUrMf3Ue+0xOW44mlmbIf2omdTv2MuwS19OEZtReIFv5vFPH3dtwjbCKNmd4MJA qbgXYBJM0nQgUTURrfUz7F9P3QyHT8p4l03lg/amnfsE2aIeShWuGiBHK8ZMPwYB074p NwWJHcA5TFK3Ac54PHAndm0/nLbpqn/DrtIp3ZZGi++xtAsa+vhwc864KlGuTZL8rr0E LgUguQIl9njkXr0jEU8D5BDm6I/gBtCCUryVRvhv8706sGlOPNbHIEyf6LKEWLa8MB53 06dJ/0vdNf1idM6nznFU4hhTs9omXquqLUbmVeqaQM7Lm2aRD4Zv1Xs3R1sFUlVXbSgQ Ns3g== Received: by 10.60.14.198 with SMTP id r6mr8006138oec.115.1350916320534; Mon, 22 Oct 2012 07:32:00 -0700 (PDT) MIME-Version: 1.0 Sender: gtanner@gmail.com Received: by 10.76.95.231 with HTTP; Mon, 22 Oct 2012 07:31:40 -0700 (PDT) In-Reply-To: References: From: Gord Tanner Date: Mon, 22 Oct 2012 10:31:40 -0400 X-Google-Sender-Auth: CSm6DO48yTHGOT_xS-C9sicwEUM Message-ID: Subject: Re: sweet.js and TypeScript To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1f72c68207204cca6b78f X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1f72c68207204cca6b78f Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Just a friendly nudge away from typescript ;) Sweet.js has nothing to do with typescript. The idea is more for using macro's to add new and upcoming syntax support to our javascript layer. On Mon, Oct 22, 2012 at 10:28 AM, Braden Shepherdson w= rote: > From my indirect knowledge of TypeScript, I think one of its major points > is that it's a strict superset of JS. That means that normal JS is valid > TypeScript, so it can be used with other libraries and tools that are pla= in > JS. > > > On Mon, Oct 22, 2012 at 10:05 AM, Andrew Grieve >wrote: > > > Sounds like a fun discussion :) > > > > There are two things about sweet.js that make me iffy about it: > > 1. Looks like it might make our code look not like JS, and contributors > > would need to learn a new language to figure out what's going on > > 2. It might make it easier to write bloated code > > > > I think if we really wanted something like sweet.js, something like > > Traceur > >might > > be a better place to start. > > > > I'm well accustomed to writing typed JS from my past experience with > > Closure Compiler. I haven't looked enough at TypeScript yet to know whi= ch > > tool might give better type checking, but if people are interested in > type > > checking, it'd be worth considering Closure Compiler as well. > > > > > > > > On Mon, Oct 22, 2012 at 8:14 AM, Patrick Mueller > > wrote: > > > > > There was some chit-chat on Twitter this weekend about using the > sweet.js > > > [1] macro processor in Cordova. Somehow. Not quite sure how. Also,= a > > - I > > > believe trolling - mention of using TypeScript [2]. Somehow. > > > > > > I'd be interested in hearing more about either. > > > > > > w/r/t TypeScript - note that Isaac Schlueter has mentioned using > > TypeScript > > > with node.js [3]: > > > > > > "It=92d be a great idea to write up a TypeScript header file > > > for the API surface in Node. Then, we could automatically > > > test for API deviations, validate and flesh out our > > > documentation, etc. Static typing does confer some very > > > relevant value." > > > > > > I spent a frustrating couple of hours writing code with TypeScript - > > didn't > > > come away impressed; but as an interface definition language - maybe. > Not > > > sure what the reflective capabilities are there in terms of the outpu= t > > tho. > > > > > > [1] http://sweetjs.org/ > > > [2] http://www.typescriptlang.org/ > > > [3] http://blog.izs.me/post/32697104162/thoughts-on-typescript > > > > > > -- > > > Patrick Mueller > > > http://muellerware.org > > > > > > --=20 Gord Tanner Senior Developer / Code Poet tinyHippos Inc. @tinyhippos --e89a8fb1f72c68207204cca6b78f--