Re: [media-types] TypeScript

David Caldwell <david@davidpcaldwell.com> Fri, 22 November 2019 10:51 UTC

Return-Path: <david@davidpcaldwell.com>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7BE212081B for <media-types@ietfa.amsl.com>; Fri, 22 Nov 2019 02:51:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=davidpcaldwell-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m2-Wye1w5DNx for <media-types@ietfa.amsl.com>; Fri, 22 Nov 2019 02:51:08 -0800 (PST)
Received: from pechora6.dc.icann.org (pechora6.icann.org [IPv6:2620:0:2830:201::1:72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5A057120088 for <media-types@ietf.org>; Fri, 22 Nov 2019 02:51:08 -0800 (PST)
Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pechora6.dc.icann.org (Postfix) with ESMTPS id 8F93D1E00AD for <media-types@iana.org>; Fri, 22 Nov 2019 10:51:07 +0000 (UTC)
Received: by mail-ot1-x335.google.com with SMTP id f10so5805131oto.3 for <media-types@iana.org>; Fri, 22 Nov 2019 02:51:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidpcaldwell-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7+6Hm7MpjZgZKJsTnP90egFbsfpxsvZLUvwFs/RE4pA=; b=nbQKGniRlKX9L8ekXKAx1wiChyxk3Wiqmp1P229+x5y5cwT2nMbFrwbE13fZlKc6uu HmfPyNGicSddfO5h5AhoHCSe47E/0zLKjA8+xF2G/cwGVXzAn0S65gNH2HhAt312cB6J pcfVwHNdNe/dujIy1dscKD6k+vxANKDTflkQNjS0WbyaoUISQ+auQOUkeQZAZvJT91aL XX8ZrBaYHtB+ID3q7fToBMmGmlLRGtB5V9CtMsaIfg+m51wSHDmJ0AYqZw15AhBpl1hT AF/JGt//2ZHRK7FZ6J9kCGGs5GIkKgFIt8paXzFaaTobgJPbSwMgTlRpIyEcWi4mqfc0 RpHQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7+6Hm7MpjZgZKJsTnP90egFbsfpxsvZLUvwFs/RE4pA=; b=kMpP5reSGUBb3tKqOudT0j14CguglP7lqJPynU2vdZd+6JSct2MLLWzL6C85YivL+z DJYP1vueN/udynpwJ5QuyanYQCNRzXIBFZIwIWlwuiAPUvv2DWfvx+bCtv0q6xYBmNou k/9UDHlGXSNZmUnk/QXTpvRWB1ebmxag+WjST2u/uoao/kmjALN+Ve6jNjAjHjzS95cH gcAelqCMDACI2iHdu5/U6VzDI408o0JvdnQQix951v+4fdWgE9BKRuIQ0XbyA6etnCvp KNzR8Wy/ZnU9Ou+XOYRLPa/FD75Fh0SET6i77EAOeRtBYEvKX9zpjmHi9n9YXApGO4B/ nwmQ==
X-Gm-Message-State: APjAAAXjM4cLpDXm0hc4JVPwdHqqmyFwK15hlgC3pLCQqGrs4IyTKufl H3NN5WJ9oJQpJCta5CmmvoHW+L+BnTwfUYVtgElKIQ==
X-Google-Smtp-Source: APXvYqyO05HMrEzUvAR/IzLVuyMWT2lWWP75B9vcGVjG6tWinR4/bBVoaArZn+6S4VVS41PivC+qDzoDZ08pGg8xVHo=
X-Received: by 2002:a9d:bf0:: with SMTP id 103mr9816022oth.372.1574419866754; Fri, 22 Nov 2019 02:51:06 -0800 (PST)
MIME-Version: 1.0
References: <CAJ2SvnkmcOG=KNW=x5FLj_4uqWow3Uwdh714PxDcd7t0sU907g@mail.gmail.com> <FE3FBC00-986F-4121-8F45-3F3C8F5DB08A@seantek.com> <sa6v9rctkmh.fsf@hjemme.reinholdtsen.name>
In-Reply-To: <sa6v9rctkmh.fsf@hjemme.reinholdtsen.name>
From: David Caldwell <david@davidpcaldwell.com>
Date: Fri, 22 Nov 2019 05:50:55 -0500
Message-ID: <CAJ2Svnnzw0ifWwg5+d2B45-FdtUXbXo0z5UGwcsRrwhUMUA2xA@mail.gmail.com>
To: Petter Reinholdtsen <pere@hungry.com>
Cc: media-types@iana.org
Content-Type: multipart/alternative; boundary="000000000000e2b6a50597ed30c2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/zfLQQQOMJvPubuifsrAt_tibf4o>
X-Mailman-Approved-At: Fri, 22 Nov 2019 03:29:40 -0800
Subject: Re: [media-types] TypeScript
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 22 Nov 2019 10:51:10 -0000

[Sean Leonard]
> Seriously. TypeScript is source code that is supposed to be compiled;
> it’s the same as with C/C++ files, or whatever. You would want a
> specific media type if it’s supposed to be handled differently by
> applications (as as in <script src=“…”> tags in HTML).

[Petter Reinholdtse]
> One use case for MIME types for both TypeScript and C/C++ files is to
> pick the appropriate IDE when trying to open such file.

Yes, Petter's description is closer to my use case. In this case I *do*
want to handle different MIME types differently in my application
(specifically, sending them to different preprocessors that emit
JavaScript; note that CoffeeScript, similarly a language that compiles
to JavaScript, already has an IANA registered MIME type.

- David P. Caldwell
david@davidpcaldwell.com
http://www.davidpcaldwell.com/